export const PAGE_CODE = 'dcs-afterSales-claim';
import {PAGE} from '../constants';
import {repairType, claimAthType, claimStatus} from '../Enum';
export const DEFAULT_QUERY_OPTION = {
    dealerId: '',
    brandId: '',
    code: '',
    causePartCode: '',
    causePartName: '',
    vin: '',
    engineCode: '',
    transmissionSn: '',
    productCategoryCode: [],
    status: [],
    causePartCategoryId: '',
    faultItemId: '',
    approverName: '',
    repairCode: '',
    subDealerCode: '',
    faultType: [],
    repairType: undefined,
    submitTime: undefined,
    approveTime: undefined,
    isDownload: undefined,
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
    sortField: 'createTime',
    isDesc: true
};
// 操作权限
export const PERMISSION = {
    approve: 'approve',
    add: 'add',
    submit: 'submit',
    update: 'update',
    return: 'return',
    abandon: 'abandon',
    export: 'export',
    usedLabelPrint: 'usedLabelPrint',
    querySearch: 'querySearch',
    adjust: 'adjust',
    auto: 'auto',
    queryExport: 'queryExport',
    historyExport: 'historyExport',
    autoSearch: 'autoSearch',
    approveAll: 'approveAll',
    settlementExport: 'settlementExport',
    import: 'import',
    download: 'download',
    upload: 'upload'
};
export const repairTypeSale = repairType.pick([
    repairType.车辆索赔,
    repairType.备件索赔
]);
export const repairTypeUnSale = repairType.pick([
    repairType.PDI索赔,
    repairType.售前索赔
]);
export const tuClaimAthType = claimAthType.pick([
    claimAthType.图片资料
]);
export const HISTORY_DEFAULT_QUERY_OPTION = {
    code: '',
    dealerId: '',
    status: undefined,
    claimType: undefined,
    vin: '',
    originTag: undefined,
    createTime: [],
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};
export const PANEL_CARD_COL_SPAN = {
    xxl: 21,
    xl: 19,
    lg: 18,
    md: 18,
    sm: 18,
    xs: 18
};

export const claimStatusSale = claimStatus.pick([
    claimStatus.新建,
    claimStatus.待审核,
    claimStatus.审核通过,
    claimStatus.拒赔,
    claimStatus.驳回
]);
